<h1><?=$this->name;?></h1>

<?php
echo getContent($this->content);

$editUrl = $this->url(
    array('controller' => 'module', 'action' => 'edit', 'id' => $this->vertexId));
?>
<div style="margin-top:25px;">
    <a href="<?=$editUrl;?>">Edit</a>
</div>


<?php
function getContent($content){
    foreach($content AS $plugin){
        $out .= '<br/>';
        $out .= '<fieldset>';
        $out .= '<legend>'.$plugin['name'].'</legend>';
        $out .= $plugin['content'];
        $out .= '</fieldset>';
    }
    return $out;
}